﻿namespace SimpleFactoryPatterDemo
{
    /// <summary>
    /// 具体的产品实现角色 ：加法操作类
    /// </summary>
    public class AddOperation : Operation
    {
        /// <summary>
        /// 具体实现产品角色：--->拿到其对应产品结果
        /// </summary>
        /// <returns></returns>
        public override double GetResult()
        {
            return NumberA + NumberB;
        }
    }
}